{
  'variables': {
    'THIRD_PARTY': '../../../third_party',
  },
  'targets': [
    {
      'target_name': 'libprotoserv-compiler-python',
      'type': 'static_library',
      'include_dirs': [ 'src', ],
      'sources': [
        'src/protoserv/compiler/python/file.cc',
        'src/protoserv/compiler/python/file.h',
        'src/protoserv/compiler/python/generator.cc',
        'src/protoserv/compiler/python/generator.h',
        'src/protoserv/compiler/python/helpers.cc',
        'src/protoserv/compiler/python/helpers.h',
        'src/protoserv/compiler/python/service.cc',
        'src/protoserv/compiler/python/service.h',
      ],
      'dependencies': [
        '<(THIRD_PARTY)/protobuf/build.gyp:libprotoc',
      ],
      'direct_dependent_settings': {
        'include_dirs': [ 'src', ],
      },
      'export_dependent_settings': [
        '<(THIRD_PARTY)/protobuf/build.gyp:libprotoc',
      ],
    },
    {
      'target_name': 'protoc-gen-python_rpc',
      'type': 'executable',
      'cflags': [ '-O2', '-g', '-Wall' ],
      'include_dirs': [
        'src',
      ],
      'sources': [
        'src/protoserv/compiler/python/plugin_main.cc',
      ],
      'dependencies': [
        'libprotoserv-compiler-python',
      ],
    },
  ],
}
